const hostName = window.location.host.includes('localhost') ? '192.168.5.222' : window.location.hostname;
var port = window.location.host.includes('localhost') ? '443' : window.location.port;
// var port = '443';
var protocol = window.location.protocol;
window.config = {
    isDev: window.location.host.includes('localhost'),
    port,
    apiHost: "/wd",
    jsonHost: "/api/json",
    formHost: "/api/form",
    resourceHost: "/ws/",
    wsHost: (protocol === 'https:' ? 'wss:' : 'ws:') + "//" + hostName + (port == "" ? "" : (":" + port)) + "/ws/",
    host: hostName,
    exportMaxNum: 500,
    jsonTimeOut: 600 * 1000, //json接口
    formTimeOut: 1200 * 1000, //form接口
    language: "zhCN",
    MaxWSReconnectAttempts: 100,
    pagingSize: 50,
    ocxEnabled: true,
    ocxDownUrl: "/NebulaPlayer.exe",
    ocxPlayMode: 1,
    max_size: 5120,
}